import { Toast } from "antd-mobile";
import request from "@/api/request";

/**
 * 验证
 * @param {Object} params - 参数
 * @returns {Promise} 返回数据
 */
export const accessTokenValidate = async (params = {}) => {
  Toast.show({
    icon: "loading",
    maskClickable: false,
  });
  const { data } = await request({
    url: "/member/accessTokenValidate",
    method: "post",
    data: params,
  });
  Toast.clear();
  return data;
};



/**
 * 验证中
 * @param {Object} params - 参数
 * @returns {Promise} 返回数据
 */
export const umscbsBillCreatMemberRequest = async (params = {}) => {
  Toast.show({
    icon: "loading",
    maskClickable: false,
  });
  const { data } = await request({
    url: "/member/umscbsBillCreatMemberRequest",
    method: "post",
    data: params,
  });
  Toast.clear();
  return data;
};
